/********** Library Includes **************************************************/

#include <opencv/cv.h>
#include <opencv/highgui.h>

/********** Local Includes ****************************************************/

#include "cannedsource.h"

/********** Namespaces ********************************************************/

using namespace cv;
using namespace std;

/********** Public Methods ****************************************************/

Mat CannedSource::next() {
	if (m_filename.size() == 0) {
		cerr << "WARNING in " << __FUNCTION__ << " on line " << __LINE__
			<< ": no filename is set" << endl;
		
		return Mat();
	}
	
	return imread(m_filename);
}
	
void CannedSource::setImageFilename(const string &filename) {
	m_filename = filename;
}
